package cn.ztydata.teachingsystem.heaven.web.dto;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 章节dto类
 * Created by chenxin on 2014/12/15.
 */
public class ChapterDto {
    @Min(value = 1, message = "节点ID不对")
    private Long id; //节点ID
    @NotNull
    @Length(min = 1, max = 60, message = "节点名称长度应为1~60字符")
    private String name; //节点名称
    @Min(value = 1, message = "父节点ID不对")
    private Long parentId; //父节点ID
    @Min(value = 1, message = "课程ID")
    private Long classId; //课程ID


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }
}
